home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 42 / Amiga Format AFCD42 (Issue 126, Aug 1999).iso / -serious- / programming / other / ioblixdevkit / c / examples / smakefile < prev    next >
Makefile  |  1999-05-14  |  1KB  |  48 lines

  1. ##
  2. ##
  3.  
  4. OPTIMIZE=           opt optsched opttime
  5. DEBUG=
  6. CFLAGS=             cpu=68020 streq strmerge nostkchk incdir=/include
  7. LFLAGS=             smallcode noicons nodebug
  8.  
  9. PROGS=              QueryChipList \
  10.                     QueryParPorts \
  11.                     QueryUARTs \
  12.                     TestResource
  13.  
  14. LIBS=               lib:sc.lib lib:amiga.lib
  15.  
  16. all:                $(PROGS)
  17.  
  18. .c.o:
  19.                     sc $(CFLAGS) $(OPTIMIZE) $(DEBUG) $*.c
  20.  
  21. QueryChipList:      QueryChipList.o
  22.                     slink lib:c.o $@.o lib $(LIBS) to $@ $(LFLAGS)
  23.  
  24. QueryParPorts:      QueryParPorts.o
  25.                     slink lib:c.o $@.o lib $(LIBS) to $@ $(LFLAGS)
  26.  
  27. QueryUARTs:         QueryUARTs.o
  28.                     slink lib:c.o $@.o lib $(LIBS) to $@ $(LFLAGS)
  29.  
  30. TestResource:       TestResource.o
  31.                     slink lib:c.o $@.o lib $(LIBS) to $@ $(LFLAGS)
  32.  
  33. QueryChipList.o:    QueryChipList.c \
  34.                     /include/resources/ioblix.h
  35.  
  36. QueryParPorts.o:    QueryParPorts.c \
  37.                     /include/resources/ioblix.h
  38.  
  39. QueryUARTs.o:       QueryUARTs.c \
  40.                     /include/resources/ioblix.h
  41.  
  42. TestResource.o:     TestResource.c \
  43.                     /include/resources/ioblix.h
  44.  
  45. clean:
  46.                     delete $(PROGS) \#?.o
  47.  
  48.